#ifndef INTERRUPT_H
#define INTERRUPT_H

#include <semaphore.h>

#define MEMORY_INTERRUPT_NUMBER 3

typedef struct struct_interrupt
{
	int number[2];
	sem_t semhi;
} Interrupt;

Interrupt *interrupt_create();
void set_interrupt(Interrupt *i, int n);
int get_interrupt(Interrupt *i);
void reset_interrupt(Interrupt *i, int n);

#endif
